# SPDX-License-Identifier: GPL-2.0
# X-SPDX-Copyright-Text: (c) Copyright 2021 Xilinx, Inc.

ccflags-y += -I$(src)/../../lib/efrm
override undefine MMAKE_IN_KBUILD
include $(src)/mmake.mk

obj-m := $(RESOURCE_TARGET)

sfc_resource-objs := $(RESOURCE_SRCS:%.c=%.o) \
                     $(EFHW_SRCS:%.c=../../lib/efhw/%.o) \
                     $(EFHW_EF10_SRCS:%.c=../../lib/efhw/ef10/%.o) \
                     $(EFHW_EF10CT_SRCS:%.c=../../lib/efhw/ef10ct/%.o) \
                     $(EFRM_SRCS:%.c=../../lib/efrm/%.o) \
                     $(UTILS_SRCS:%.c=../../lib/kernel_utils/%.o) \
                     $($(ARCH)_TARGET_SRCS:%.c=%.o)
